//
//  YMMedicalTools.h
//  YMMedical
//
//  Created by y s on 2023/7/25.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface YMMedicalTools : NSObject

/** 选择性别 */
+ (void)chooseSexSheet:(void(^)(NSString *sex, NSInteger index))success;
/** 选择出生日期 */
+ (void)chooseBirthDay:(void(^)(NSString *year))success;

/** 获取图片 视频第一帧 */
+ (UIImage *)firstFrameWithVideoURL:(NSString *)urlStr size:(CGSize)size;

/** html 富文本 */
+ (NSMutableAttributedString *)getHtmlStringWithString:(NSString *)string;

/** 计算距离当前的有多少年  */
+ (NSString *)calculateYearToNow:(NSString *)year;

//获取检测报告 距离这次检测报告35天数组
+ (NSArray *)getXDateArray:(NSString *)endDate count:(NSInteger)count;

+ (NSString *)sexName:(NSString *)languege;
+ (NSString *)showGender:(NSString *)gender;

@end

NS_ASSUME_NONNULL_END
